import React from "react";

const Home = React.lazy(() => import("../views/home/index"));
const My = React.lazy(() => import("../views/my/index"));
const Detail = React.lazy(() => import("../views/detail/index"));
// 路由表
const routes = [
  {
    path: "/home",
    element: <Home></Home>,
  },
  {
    path: "/my",
    element: <My></My>,
  },
  {
    path: "/detail/:id",
    element: <Detail></Detail>,
  },
];



export default routes